
#{list items: newMBlogs, as: 'post'}
<div id="div${post.data.id}">
    <img src="${post.data.author.avatar}" style="width: 50px;height: 50px" >        
    <br>
    <!-- 微博内容 -->
    <div style="position: relative;left: 60px;top:-35px; width: 440px" >
        <p style=" float: left; color: #008aff">${post.data.author.name}：</p>
        ${post.data.content}
        <br>
        <br>
        #{if post.data.image!=null}
        <img style="height:100px;cursor:pointer" class="postImg" src="${post.data.image}">
        <br>
        #{/if}
        <!--转发的微博 -->
        #{if post.data.originId!=0}
        <div class="alert alert-info" style="position: relative;left: 0px;top:5px; width: 420px">
            <p style=" float: left; color: #008aff">@${models.MBlog.findById(post.data.originId).author.name}:</p>
            <br>
            ${models.MBlog.findById(post.data.originId).content}
            #{if models.MBlog.findById(post.data.originId).image!=null}
            <br>
            <br>
            <img style="height:100px;cursor:pointer" class="postImg" src="${models.MBlog.findById(post.data.originId).image}">
            <br>
            #{/if}            
            <p style="color: #008aff">${models.MBlog.findById(post.data.originId).createAt}</p>
        </div>
        #{/if}
        <br>
        <p style="color: #008aff">${post.data.createAt}</p>
    </div>
    <div  style=" position: relative;left: 420px;top:-62px">
        |&nbsp;
        <a style=" position: relative;left: 0px;top:1px" data-postid="${post.data.id}" data-toggle="modal" href="#modalbackdroptrue"  >
            转发(${post.data.forwardCnt})
        </a>
        #{if post.data.author.equals(usr)}
        |
        <a style=" position: relative;left: 0px;top:1px" class="del" data-mypostsid="${post.data.id}" onclick="$.get('@{Application.deleteMBlog(post.data.id)}') " href="#" >
            删除
        </a>
        #{/if}           
    </div>
    <!-- 评论 -->
    <div class="accordion" id="accordion2">
        <div class="accordion-heading">
            <a id="comText${post.id}" style=" position: relative;left: 358px;top:-87px; width: 48px"   class="accordion-toggle" data-toggle="collapse" data-loaded="0" data-parent="#accordion2" data-postid="${post.data.id}" href="#${post.data.id}">
                评论(${post.data.commentCnt})
            </a>
            <div style="width: 470px; position: relative;left: 60px;top:-82px" id="${post.data.id}" class="accordion-body collapse">
                <div class="accordion-inner   alert alert-info">
                    <form name="comment">
                        <input style="width: 375px;" type="text" class="span6" placeholder="请输入评论...">
                        <input style="position: relative;top:-5px" type="button" class="btn" value="评论"  data-postid="${post.data.id}" data-authorid="${post.data.author.id}">
                    </form>  
                    <div id="com${post.data.id}">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<hr>
#{/list}

